// 全局组件注册
import CustomNavBar from './CustomNavBar.vue';
import PageContainer from './PageContainer.vue';
import GlobalLoading from './GlobalLoading.vue';

// 组件列表
const components = {
  CustomNavBar,
  PageContainer,
  GlobalLoading
};

// 安装函数
const install = (app) => {
  Object.keys(components).forEach(key => {
    app.component(key, components[key]);
  });
};

// 导出安装函数和组件
export default {
  install
};

export {
  CustomNavBar,
  PageContainer,
  GlobalLoading
};